package com.liyunc.demo.exception;

/**
 * 自定义表单重复提交异常.
 */
public class FromRepeatException extends RuntimeException {

    private String code;//返回码
    private String message;//返回信息

    public FromRepeatException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
